﻿using System;

namespace Google.Analytics.Model.Queries
{
    
    public class Order
    {
        public Enum OrderBy { get; set; }

        public SortDirection SortBy { get; set; }

        public Order(Enum orderBy, SortDirection sortBy)
        {
            OrderBy = orderBy;
            SortBy = sortBy;
        }

        public override string ToString()
        {
            return string.Format("{0}{1}", (SortBy == SortDirection.Des) ? "-" : string.Empty, OrderBy);
        }
    }
}
